package invalidj2eebusinessservicedependency;

import invalidj2eebusinessservicedependency.InvalidJ2eeBusinessServiceDependencyMatch;
import org.eclipse.viatra2.emf.incquery.runtime.api.IMatchProcessor;
import sysmodel.BusinessService;
import sysmodel.J2eeBusinessService;

/**
 * A match processor tailored for the InvalidJ2eeBusinessServiceDependency pattern.
 * 
 * Clients should derive an (anonymous) class that implements the abstract process().
 * 
 */
public abstract class InvalidJ2eeBusinessServiceDependencyProcessor implements IMatchProcessor<InvalidJ2eeBusinessServiceDependencyMatch> {
  /**
   * Defines the action that is to be executed on each match.
   * @param pJ2eeService the value of pattern parameter j2eeService in the currently processed match 
   * @param pOtherService the value of pattern parameter otherService in the currently processed match 
   * 
   */
  public abstract void process(final J2eeBusinessService j2eeService, final BusinessService otherService);
  
  @Override
  public void process(final InvalidJ2eeBusinessServiceDependencyMatch match) {
    process(match.getJ2eeService(), match.getOtherService());  				
    
  }
}
